From: Stefano Stabellini Date: Thu, 2 Sep 2010 16:44:46 +0000 (+0100) Subject: xl: parse the maxvcpus config file parameter X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11546 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=7497632508eb0574bccb5418339ceb38131dae2f;p=xen.git xl: parse the maxvcpus config file parameter Signed-off-by: Stefano Stabellini Signed-off-by: Ian Jackson --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 3e401649ba..9ed1fefd04 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -627,6 +627,9 @@ static void parse_config_data(const char *configfile_filename_report, b_info->cur_vcpus = (1 << l) - 1; } + if (!xlu_cfg_get_long (config, "maxvcpus", &l)) + b_info->max_vcpus = l; + if (!xlu_cfg_get_long (config, "memory", &l)) { b_info->max_memkb = l * 1024; b_info->target_memkb = b_info->max_memkb;